<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.*, java.io.*, java.util.*, database.*" %>
<jsp:useBean id="con" class="database.DatabaseConnection"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Choose data to Edit</title>
<style type="text/css">
<!--
body {
	background-image: url(file:///E|/cp3110/web/image/3110_background/backcolor3.jpg);
	background-repeat: repeat;
}
.STYLE1 {font-size: 18px}
-->
</style></head>

<body>
<form id="form1" name="form1" method="post" action="">
  <table width="473" border="1" align="center">
    <tr>
      <td colspan="4" align="center" valign="middle"><span class="STYLE1">Choose Data To Edit</span></td>
    </tr>
    <tr>
      <td width="101" align="center" valign="middle">ID</td>
      <td width="149" align="center" valign="middle">Rim</td>
      <td colspan="2" align="center" valign="middle">Action</td>
    </tr>
 <%
        con.createConnection();
        ResultSet rs = con.getRim();
        String Rim_ID = null;
        String Rim = null;

                    for (int j = 0; j < 8; j++) {
                        if (rs.next()) {
                            Rim_ID = rs.getString("Rim_ID");
                            Rim = rs.getString("Rim");
                    %>
                    <tr align="left" valign="top">
                    <td align="center" valign="middle"><%=Rim_ID%></td>
                    <td align="center" valign="middle"><%=Rim%></td>
                    <td width="39" colspan="2" align="center" valign="middle"><a href="" target="mainFrame">Choose</a></td>
                    </tr>
                    <%
                        }
                    }
                    %>
    <tr>
      <td colspan="2" align="center" valign="middle">&nbsp;</td>
      <td width="72" align="center" valign="middle">Back</td>
      <td width="78" align="center" valign="middle">Next</td>
    </tr>
  </table>
</form>
</body>
</html>
